<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>招标概况</title>
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet"/>
    <link th:href="@{/css/index.css}" rel="stylesheet"/>
    <link th:href="@{/css/tool.css}" rel="stylesheet"/>
    <link th:href="@{/css/show.css}" rel="stylesheet"/>
    <link th:href="@{/css/easyeditor.css}" rel="stylesheet"/>

    <!-- 图标  -->
    <link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_1531710_xb357ub1wmg.css"/>
    <script th:src="@{/layui/layui.js}"></script>
    <script th:src="@{/js/marked.min.js}"></script>
</head>
<body>
<div th:insert="~{navigation::nav}"></div>

<div th:insert="~{zb/showzb::show}"></div>

</body>
<script>
    layui.config({base: '/js/mods/'}).extend({
        easyeditor: 'easyeditor'
    });

    layui.use(['element', 'util', 'easyeditor', 'jquery'], function () {
        var element = layui.element,
            util = layui.util,
            $ = layui.jquery,
            easyeditor = layui.easyeditor;

        easyeditor.render({
            elem: ".easyeditor-content" //存放md内容的元素ID
        });
        //示例
        var endTime = new Date($('#openTime').val()).getTime()//结束日期
            , serverTime = new Date().getTime(); //假设为当前服务器时间，这里采用的是本地时间，实际使用一般是取服务端的


        if (endTime <= serverTime) {
            $('#kbTag').text("已开标")
        }

        util.countdown(endTime, serverTime, function (date, serverTime, timer) {
            var str = date[0] + '天' + date[1] + '时' + date[2] + '分' + date[3] + '秒';
            layui.$('#time').html(str);
        });

    });
</script>
</html>